Optimal. Leaf size=95 \[ \frac {2 a^2 (a+b x)^{3/2} (A b-a B)}{3 b^4}+\frac {2 (a+b x)^{7/2} (A b-3 a B)}{7 b^4}-\frac {2 a (a+b x)^{5/2} (2 A b-3 a B)}{5 b^4}+\frac {2 B (a+b x)^{9/2}}{9 b^4} \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {77} \begin {gather*} \frac {2 a^2 (a+b x)^{3/2} (A b-a B)}{3 b^4}+\frac {2 (a+b x)^{7/2} (A b-3 a B)}{7 b^4}-\frac {2 a (a+b x)^{5/2} (2 A b-3 a B)}{5 b^4}+\frac {2 B (a+b x)^{9/2}}{9 b^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rubi steps
\begin {align*} \int x^2 \sqrt {a+b x} (A+B x) \, dx &=\int \left (-\frac {a^2 (-A b+a B) \sqrt {a+b x}}{b^3}+\frac {a (-2 A b+3 a B) (a+b x)^{3/2}}{b^3}+\frac {(A b-3 a B) (a+b x)^{5/2}}{b^3}+\frac {B (a+b x)^{7/2}}{b^3}\right ) \, dx\\ &=\frac {2 a^2 (A b-a B) (a+b x)^{3/2}}{3 b^4}-\frac {2 a (2 A b-3 a B) (a+b x)^{5/2}}{5 b^4}+\frac {2 (A b-3 a B) (a+b x)^{7/2}}{7 b^4}+\frac {2 B (a+b x)^{9/2}}{9 b^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 65, normalized size = 0.68 \begin {gather*} \frac {2 (a+b x)^{3/2} \left (-16 a^3 B+24 a^2 b (A+B x)-6 a b^2 x (6 A+5 B x)+5 b^3 x^2 (9 A+7 B x)\right )}{315 b^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.04, size = 83, normalized size = 0.87 \begin {gather*} \frac {2 (a+b x)^{3/2} \left (-105 a^3 B+105 a^2 A b+189 a^2 B (a+b x)-126 a A b (a+b x)+45 A b (a+b x)^2-135 a B (a+b x)^2+35 B (a+b x)^3\right )}{315 b^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.24, size = 95, normalized size = 1.00 \begin {gather*} \frac {2 \, {\left (35 \, B b^{4} x^{4} - 16 \, B a^{4} + 24 \, A a^{3} b + 5 \, {\left (B a b^{3} + 9 \, A b^{4}\right )} x^{3} - 3 \, {\left (2 \, B a^{2} b^{2} - 3 \, A a b^{3}\right )} x^{2} + 4 \, {\left (2 \, B a^{3} b - 3 \, A a^{2} b^{2}\right )} x\right )} \sqrt {b x + a}}{315 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.25, size = 207, normalized size = 2.18 \begin {gather*} \frac {2 \, {\left (\frac {21 \, {\left (3 \, {\left (b x + a\right )}^{\frac {5}{2}} - 10 \, {\left (b x + a\right )}^{\frac {3}{2}} a + 15 \, \sqrt {b x + a} a^{2}\right )} A a}{b^{2}} + \frac {9 \, {\left (5 \, {\left (b x + a\right )}^{\frac {7}{2}} - 21 \, {\left (b x + a\right )}^{\frac {5}{2}} a + 35 \, {\left (b x + a\right )}^{\frac {3}{2}} a^{2} - 35 \, \sqrt {b x + a} a^{3}\right )} B a}{b^{3}} + \frac {9 \, {\left (5 \, {\left (b x + a\right )}^{\frac {7}{2}} - 21 \, {\left (b x + a\right )}^{\frac {5}{2}} a + 35 \, {\left (b x + a\right )}^{\frac {3}{2}} a^{2} - 35 \, \sqrt {b x + a} a^{3}\right )} A}{b^{2}} + \frac {{\left (35 \, {\left (b x + a\right )}^{\frac {9}{2}} - 180 \, {\left (b x + a\right )}^{\frac {7}{2}} a + 378 \, {\left (b x + a\right )}^{\frac {5}{2}} a^{2} - 420 \, {\left (b x + a\right )}^{\frac {3}{2}} a^{3} + 315 \, \sqrt {b x + a} a^{4}\right )} B}{b^{3}}\right )}}{315 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 71, normalized size = 0.75 \begin {gather*} \frac {2 \left (b x +a \right )^{\frac {3}{2}} \left (35 B \,b^{3} x^{3}+45 A \,b^{3} x^{2}-30 B a \,b^{2} x^{2}-36 A a \,b^{2} x +24 B \,a^{2} b x +24 A \,a^{2} b -16 B \,a^{3}\right )}{315 b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.85, size = 77, normalized size = 0.81 \begin {gather*} \frac {2 \, {\left (35 \, {\left (b x + a\right )}^{\frac {9}{2}} B - 45 \, {\left (3 \, B a - A b\right )} {\left (b x + a\right )}^{\frac {7}{2}} + 63 \, {\left (3 \, B a^{2} - 2 \, A a b\right )} {\left (b x + a\right )}^{\frac {5}{2}} - 105 \, {\left (B a^{3} - A a^{2} b\right )} {\left (b x + a\right )}^{\frac {3}{2}}\right )}}{315 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 85, normalized size = 0.89 \begin {gather*} \frac {\left (6\,B\,a^2-4\,A\,a\,b\right )\,{\left (a+b\,x\right )}^{5/2}}{5\,b^4}+\frac {2\,B\,{\left (a+b\,x\right )}^{9/2}}{9\,b^4}+\frac {\left (2\,A\,b-6\,B\,a\right )\,{\left (a+b\,x\right )}^{7/2}}{7\,b^4}-\frac {\left (2\,B\,a^3-2\,A\,a^2\,b\right )\,{\left (a+b\,x\right )}^{3/2}}{3\,b^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.93, size = 92, normalized size = 0.97 \begin {gather*} \frac {2 \left (\frac {B \left (a + b x\right )^{\frac {9}{2}}}{9 b} + \frac {\left (a + b x\right )^{\frac {7}{2}} \left (A b - 3 B a\right )}{7 b} + \frac {\left (a + b x\right )^{\frac {5}{2}} \left (- 2 A a b + 3 B a^{2}\right )}{5 b} + \frac {\left (a + b x\right )^{\frac {3}{2}} \left (A a^{2} b - B a^{3}\right )}{3 b}\right )}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________